import request from '@/utils/request'
import { ResultInteger, DeepRequired } from '../../interface'

/**
 * 根据ID判断是否为hr
 * /hr/isHr/{id}
 */
export function getHrIsHrById(params: GetHrIsHrByIdParams) {
  return request.get<DeepRequired<ResultInteger>>(`/hr/isHr/${params.id}`)
}

interface GetHrIsHrByIdParams {
  id: number
}
